package com.jxdinfo.hussar.example.rypxmk.pxjhgllhx1.controller;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.jxdinfo.hussar.support.audit.core.annotations.AuditLog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.jxdinfo.hussar.support.audit.core.enums.AuditEventGrade;
import com.jxdinfo.hussar.support.audit.core.enums.AuditEventType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.PostMapping;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jxdinfo.hussar.example.rypxmk.pxjhgllhx1.service.Pxjhgllhx1Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.jxdinfo.hussar.example.rypxmk.pxjhgllhx1.vo.Pxjhgllhx1PageVO;
import com.jxdinfo.hussar.example.rypxmk.pxjhgllhx1.model.Pxjhgllhx1;
import com.jxdinfo.hussar.platform.core.base.apiresult.ApiResponse;

/**
 * 培训计划管理lhx1控制器
 */
@RestController(value = "rypxmk.pxjhgllhx1.Pxjhgllhx1Controller")
@RequestMapping(value = "/rypxmk/pxjhgllhx1")
@AuditLog(moduleName = "培训计划管理lhx1")
@Api(tags = "培训计划管理lhx1控制器")
public class Pxjhgllhx1Controller {

    private static final Logger logger = LoggerFactory.getLogger(Pxjhgllhx1Controller.class);

    @Autowired
    private Pxjhgllhx1Service pxjhgllhx1Service;

    /**
     * 培训计划管理lhx1表格查询（带分页）
     *
     * @param page 分页对象
     * @return 查询结果
     */
    @AuditLog(moduleName = "培训计划管理lhx1", eventDesc = "表格查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("hussarQueryPage")
    public ApiResponse<Pxjhgllhx1PageVO> hussarQueryPage(@RequestBody Page<Pxjhgllhx1> page) {
        return pxjhgllhx1Service.hussarQueryPage(page);
    }

    /**
     * 培训计划管理lhx1表格查询（带分页）
     *
     * @param page 分页对象
     * @return 查询结果
     */
    @AuditLog(moduleName = "培训计划管理lhx1", eventDesc = "表格查询", eventGrade = AuditEventGrade.SERVICE_LOG_TYPE, evnetType = AuditEventType.QUERY)
    @PostMapping("hussarQueryPage_order_custom")
    public ApiResponse<Pxjhgllhx1PageVO> hussarQueryPage_order_custom(@RequestBody Page<Pxjhgllhx1> page) {
        return pxjhgllhx1Service.hussarQueryPage_order_custom(page);
    }
}
